package org.javaboy.vhr.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class SendResume {
    private int id;
    private int hId;
    private Date sendTime;
    private Date updateTime;
    private String way;
    private String company;
    private String url;
    private String note;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int gethId() {
        return hId;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public void sethId(int hId) {
        this.hId = hId;
    }

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getSendTime() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime);
    }

    public void setSendTime(String sendTime) {
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        try {
            this.sendTime = f.parse(sendTime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    public String getUpdateTime() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }

    public void setUpdateTime(String updateTime) {
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        try {
            this.updateTime = f.parse(updateTime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
